package com.wq.gof.designer.decorate;

import org.apache.log4j.Logger;

/**
 * @Author: wangqiang20995
 * @Date:2018/11/4
 * @Description:
 * @Resource:
 */
public class JeansClothing implements ClothingDecorate {
    private Logger logger = Logger.getLogger(getClass());
    private ClothingDecorate clothingDecorate;

    public JeansClothing(ClothingDecorate clothingDecorate){
        this.clothingDecorate = clothingDecorate;
    }

    @Override
    public void describeDecorator() {
        clothingDecorate.describeDecorator();
        logger.info("这是一条牛仔裤");
    }

    @Override
    public double cost() {
        return 45.6 + clothingDecorate.cost();
    }
}
